/*
-------------------------------------------------

	Common.h

	Dmitriy Kuzmenko (Dgut)

-------------------------------------------------
*/

#ifndef __AUTUMN_COMMON_H__
#define __AUTUMN_COMMON_H__

#include "Singleton.h"

namespace Autumn
{

#define gCommon Common::GetInstance()

class Common : public Singleton< Common >
{
	bool						pause;

								Common( void );
								~Common( void );
	
	const int					Milliseconds( void );
public:
	const bool					Init( void );
	void						Shutdown( void );
	void						Frame( void );

	const bool					IPAD;
	
	const int					DELTA;
	const int					TIME;
	
	const int					WIDTH;
	const int					HEIGHT;

	void						Resize( int width, int height );

	void						Pause( void );

	void						Save( void );
	const bool					Load( void );
		
	friend class				Singleton< Common >;
};

}	// namespace Autumn

#endif	// !!! __AUTUMN_COMMON_H__ !!!